package co.edu.usbcali.prototipobeta.presentation.businessDelegate;

import co.edu.usbcali.prototipobeta.modelo.Bebe;
import co.edu.usbcali.prototipobeta.modelo.CarnetVacunas;
import co.edu.usbcali.prototipobeta.modelo.DetalleEvento;
import co.edu.usbcali.prototipobeta.modelo.DetalleMedicina;
import co.edu.usbcali.prototipobeta.modelo.Evento;
import co.edu.usbcali.prototipobeta.modelo.Medicina;
import co.edu.usbcali.prototipobeta.modelo.Rol;
import co.edu.usbcali.prototipobeta.modelo.Usuario;
import co.edu.usbcali.prototipobeta.modelo.Vacuna;
import co.edu.usbcali.prototipobeta.modelo.control.BebeLogic;
import co.edu.usbcali.prototipobeta.modelo.control.CarnetVacunasLogic;
import co.edu.usbcali.prototipobeta.modelo.control.DetalleEventoLogic;
import co.edu.usbcali.prototipobeta.modelo.control.DetalleMedicinaLogic;
import co.edu.usbcali.prototipobeta.modelo.control.EventoLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IBebeLogic;
import co.edu.usbcali.prototipobeta.modelo.control.ICarnetVacunasLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IDetalleEventoLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IDetalleMedicinaLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IEventoLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IMedicinaLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IRolLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IUsuarioLogic;
import co.edu.usbcali.prototipobeta.modelo.control.IVacunaLogic;
import co.edu.usbcali.prototipobeta.modelo.control.MedicinaLogic;
import co.edu.usbcali.prototipobeta.modelo.control.RolLogic;
import co.edu.usbcali.prototipobeta.modelo.control.UsuarioLogic;
import co.edu.usbcali.prototipobeta.modelo.control.VacunaLogic;

import java.math.BigDecimal;

import java.util.Date;
import java.util.List;
import java.util.Set;


/**
* Use a Business Delegate to reduce coupling between presentation-tier clients and business services.
* The Business Delegate hides the underlying implementation details of the business service, such as lookup and access details of the EJB architecture.
*
* The Business Delegate acts as a client-side business abstraction; it provides an abstraction for, and thus hides,
* the implementation of the business services. Using a Business Delegate reduces the coupling between presentation-tier clients and
* the system's business services. Depending on the implementation strategy, the Business Delegate may shield clients from possible
* volatility in the implementation of the business service API. Potentially, this reduces the number of changes that must be made to the
* presentation-tier client code when the business service API or its underlying implementation changes.
*
* However, interface methods in the Business Delegate may still require modification if the underlying business service API changes.
* Admittedly, though, it is more likely that changes will be made to the business service rather than to the Business Delegate.
*
* Often, developers are skeptical when a design goal such as abstracting the business layer causes additional upfront work in return
* for future gains. However, using this pattern or its strategies results in only a small amount of additional upfront work and provides
* considerable benefits. The main benefit is hiding the details of the underlying service. For example, the client can become transparent
* to naming and lookup services. The Business Delegate also handles the exceptions from the business services, such as java.rmi.Remote
* exceptions, Java Messages Service (JMS) exceptions and so on. The Business Delegate may intercept such service level exceptions and
* generate application level exceptions instead. Application level exceptions are easier to handle by the clients, and may be user friendly.
* The Business Delegate may also transparently perform any retry or recovery operations necessary in the event of a service failure without
* exposing the client to the problem until it is determined that the problem is not resolvable. These gains present a compelling reason to
* use the pattern.
*
* Another benefit is that the delegate may cache results and references to remote business services. Caching can significantly improve performance,
* because it limits unnecessary and potentially costly round trips over the network.
*
* A Business Delegate uses a component called the Lookup Service. The Lookup Service is responsible for hiding the underlying implementation
* details of the business service lookup code. The Lookup Service may be written as part of the Delegate, but we recommend that it be
* implemented as a separate component, as outlined in the Service Locator pattern (See "Service Locator" on page 368.)
*
* When the Business Delegate is used with a Session Facade, typically there is a one-to-one relationship between the two.
* This one-to-one relationship exists because logic that might have been encapsulated in a Business Delegate relating to its interaction
* with multiple business services (creating a one-to-many relationship) will often be factored back into a Session Facade.
*
* Finally, it should be noted that this pattern could be used to reduce coupling between other tiers, not simply the presentation and the
* business tiers.
*
* @author Zathura Code Generator http://code.google.com/p/zathura
*
*/
public class BusinessDelegatorView {
    private BusinessDelegatorView() {
    }

    public static List<Bebe> getBebe() throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();

        return bebeLogic.getBebe();
    }
    
    //Metodo que consulta un bebe por usurario ID
    public static Bebe consultarBebePorUsuarioID(Long usuID) throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();
        return bebeLogic.consultarBebePorUsuarioID(usuID);
    }

    public static void saveBebe(Long bebeEdad, Date bebeFechanacimiento,
        Long bebeId, String bebeNombre, Long usuId_Usuario)
        throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();
        bebeLogic.saveBebe(bebeEdad, bebeFechanacimiento, bebeId, bebeNombre,
            usuId_Usuario);
    }

    public static void deleteBebe(Long bebeId) throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();
        bebeLogic.deleteBebe(bebeId);
    }

    public static void updateBebe(Long bebeEdad, Date bebeFechanacimiento,
        Long bebeId, String bebeNombre, Long usuId_Usuario)
        throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();
        bebeLogic.updateBebe(bebeEdad, bebeFechanacimiento, bebeId, bebeNombre,
            usuId_Usuario);
    }

    public static Bebe getBebe(Long bebeId) throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();
        Bebe bebe = null;

        try {
            bebe = bebeLogic.getBebe(bebeId);
        } catch (Exception e) {
            throw e;
        }

        return bebe;
    }

    public static List<Bebe> findByCriteriaInBebe(Object[] variables,
        Object[] variablesBetween, Object[] variablesBetweenDates)
        throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();

        return bebeLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<Bebe> findPageBebe(String sortColumnName,
        boolean sortAscending, int startRow, int maxResults)
        throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();

        return bebeLogic.findPageBebe(sortColumnName, sortAscending, startRow,
            maxResults);
    }

    public static Long findTotalNumberBebe() throws Exception {
        IBebeLogic bebeLogic = new BebeLogic();

        return bebeLogic.findTotalNumberBebe();
    }

    public static List<CarnetVacunas> getCarnetVacunas()
        throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();

        return carnetVacunasLogic.getCarnetVacunas();
    }

    public static void saveCarnetVacunas(Date carFechaaplicacion, Long carId,
        Long bebeId_Bebe, Long vacId_Vacuna) throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();
        carnetVacunasLogic.saveCarnetVacunas(carFechaaplicacion, carId,
            bebeId_Bebe, vacId_Vacuna);
    }

    public static void deleteCarnetVacunas(Long carId)
        throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();
        carnetVacunasLogic.deleteCarnetVacunas(carId);
    }

    public static void updateCarnetVacunas(Date carFechaaplicacion, Long carId,
        Long bebeId_Bebe, Long vacId_Vacuna) throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();
        carnetVacunasLogic.updateCarnetVacunas(carFechaaplicacion, carId,
            bebeId_Bebe, vacId_Vacuna);
    }

    public static CarnetVacunas getCarnetVacunas(Long carId)
        throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();
        CarnetVacunas carnetVacunas = null;

        try {
            carnetVacunas = carnetVacunasLogic.getCarnetVacunas(carId);
        } catch (Exception e) {
            throw e;
        }

        return carnetVacunas;
    }

    public static List<CarnetVacunas> findByCriteriaInCarnetVacunas(
        Object[] variables, Object[] variablesBetween,
        Object[] variablesBetweenDates) throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();

        return carnetVacunasLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<CarnetVacunas> findPageCarnetVacunas(
        String sortColumnName, boolean sortAscending, int startRow,
        int maxResults) throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();

        return carnetVacunasLogic.findPageCarnetVacunas(sortColumnName,
            sortAscending, startRow, maxResults);
    }

    public static Long findTotalNumberCarnetVacunas() throws Exception {
        ICarnetVacunasLogic carnetVacunasLogic = new CarnetVacunasLogic();

        return carnetVacunasLogic.findTotalNumberCarnetVacunas();
    }

    public static List<DetalleEvento> getDetalleEvento()
        throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();

        return detalleEventoLogic.getDetalleEvento();
    }

    public static void saveDetalleEvento(String deEveDescripcion,
        Date detEveFecha, Long detEveId, Long eveId_Evento)
        throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();
        detalleEventoLogic.saveDetalleEvento(deEveDescripcion, detEveFecha,
            detEveId, eveId_Evento);
    }

    public static void deleteDetalleEvento(Long detEveId)
        throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();
        detalleEventoLogic.deleteDetalleEvento(detEveId);
    }

    public static void updateDetalleEvento(String deEveDescripcion,
        Date detEveFecha, Long detEveId, Long eveId_Evento)
        throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();
        detalleEventoLogic.updateDetalleEvento(deEveDescripcion, detEveFecha,
            detEveId, eveId_Evento);
    }

    public static DetalleEvento getDetalleEvento(Long detEveId)
        throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();
        DetalleEvento detalleEvento = null;

        try {
            detalleEvento = detalleEventoLogic.getDetalleEvento(detEveId);
        } catch (Exception e) {
            throw e;
        }

        return detalleEvento;
    }

    public static List<DetalleEvento> findByCriteriaInDetalleEvento(
        Object[] variables, Object[] variablesBetween,
        Object[] variablesBetweenDates) throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();

        return detalleEventoLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<DetalleEvento> findPageDetalleEvento(
        String sortColumnName, boolean sortAscending, int startRow,
        int maxResults) throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();

        return detalleEventoLogic.findPageDetalleEvento(sortColumnName,
            sortAscending, startRow, maxResults);
    }

    public static Long findTotalNumberDetalleEvento() throws Exception {
        IDetalleEventoLogic detalleEventoLogic = new DetalleEventoLogic();

        return detalleEventoLogic.findTotalNumberDetalleEvento();
    }

    public static List<DetalleMedicina> getDetalleMedicina()
        throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();

        return detalleMedicinaLogic.getDetalleMedicina();
    }

    public static void saveDetalleMedicina(String detDescripcion, Long detId,
        Long medId_Medicina) throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();
        detalleMedicinaLogic.saveDetalleMedicina(detDescripcion, detId,
            medId_Medicina);
    }

    public static void deleteDetalleMedicina(Long detId)
        throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();
        detalleMedicinaLogic.deleteDetalleMedicina(detId);
    }

    public static void updateDetalleMedicina(String detDescripcion, Long detId,
        Long medId_Medicina) throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();
        detalleMedicinaLogic.updateDetalleMedicina(detDescripcion, detId,
            medId_Medicina);
    }

    public static DetalleMedicina getDetalleMedicina(Long detId)
        throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();
        DetalleMedicina detalleMedicina = null;

        try {
            detalleMedicina = detalleMedicinaLogic.getDetalleMedicina(detId);
        } catch (Exception e) {
            throw e;
        }

        return detalleMedicina;
    }

    public static List<DetalleMedicina> findByCriteriaInDetalleMedicina(
        Object[] variables, Object[] variablesBetween,
        Object[] variablesBetweenDates) throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();

        return detalleMedicinaLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<DetalleMedicina> findPageDetalleMedicina(
        String sortColumnName, boolean sortAscending, int startRow,
        int maxResults) throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();

        return detalleMedicinaLogic.findPageDetalleMedicina(sortColumnName,
            sortAscending, startRow, maxResults);
    }

    public static Long findTotalNumberDetalleMedicina()
        throws Exception {
        IDetalleMedicinaLogic detalleMedicinaLogic = new DetalleMedicinaLogic();

        return detalleMedicinaLogic.findTotalNumberDetalleMedicina();
    }

    public static List<Evento> getEvento() throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();

        return eventoLogic.getEvento();
    }

    public static void saveEvento(Long eveId, Long bebeId_Bebe)
        throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();
        eventoLogic.saveEvento(eveId, bebeId_Bebe);
    }

    public static void deleteEvento(Long eveId) throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();
        eventoLogic.deleteEvento(eveId);
    }

    public static void updateEvento(Long eveId, Long bebeId_Bebe)
        throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();
        eventoLogic.updateEvento(eveId, bebeId_Bebe);
    }

    public static Evento getEvento(Long eveId) throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();
        Evento evento = null;

        try {
            evento = eventoLogic.getEvento(eveId);
        } catch (Exception e) {
            throw e;
        }

        return evento;
    }

    public static List<Evento> findByCriteriaInEvento(Object[] variables,
        Object[] variablesBetween, Object[] variablesBetweenDates)
        throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();

        return eventoLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<Evento> findPageEvento(String sortColumnName,
        boolean sortAscending, int startRow, int maxResults)
        throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();

        return eventoLogic.findPageEvento(sortColumnName, sortAscending,
            startRow, maxResults);
    }

    public static Long findTotalNumberEvento() throws Exception {
        IEventoLogic eventoLogic = new EventoLogic();

        return eventoLogic.findTotalNumberEvento();
    }

    public static List<Medicina> getMedicina() throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();

        return medicinaLogic.getMedicina();
    }

    public static void saveMedicina(Long medId, String medNombre,
        Long bebeId_Bebe) throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();
        medicinaLogic.saveMedicina(medId, medNombre, bebeId_Bebe);
    }

    public static void deleteMedicina(Long medId) throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();
        medicinaLogic.deleteMedicina(medId);
    }

    public static void updateMedicina(Long medId, String medNombre,
        Long bebeId_Bebe) throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();
        medicinaLogic.updateMedicina(medId, medNombre, bebeId_Bebe);
    }

    public static Medicina getMedicina(Long medId) throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();
        Medicina medicina = null;

        try {
            medicina = medicinaLogic.getMedicina(medId);
        } catch (Exception e) {
            throw e;
        }

        return medicina;
    }

    public static List<Medicina> findByCriteriaInMedicina(Object[] variables,
        Object[] variablesBetween, Object[] variablesBetweenDates)
        throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();

        return medicinaLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<Medicina> findPageMedicina(String sortColumnName,
        boolean sortAscending, int startRow, int maxResults)
        throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();

        return medicinaLogic.findPageMedicina(sortColumnName, sortAscending,
            startRow, maxResults);
    }

    public static Long findTotalNumberMedicina() throws Exception {
        IMedicinaLogic medicinaLogic = new MedicinaLogic();

        return medicinaLogic.findTotalNumberMedicina();
    }

    public static List<Rol> getRol() throws Exception {
        IRolLogic rolLogic = new RolLogic();

        return rolLogic.getRol();
    }

    public static void saveRol(Long rolId, String rolNombre)
        throws Exception {
        IRolLogic rolLogic = new RolLogic();
        rolLogic.saveRol(rolId, rolNombre);
    }

    public static void deleteRol(Long rolId) throws Exception {
        IRolLogic rolLogic = new RolLogic();
        rolLogic.deleteRol(rolId);
    }

    public static void updateRol(Long rolId, String rolNombre)
        throws Exception {
        IRolLogic rolLogic = new RolLogic();
        rolLogic.updateRol(rolId, rolNombre);
    }

    public static Rol getRol(Long rolId) throws Exception {
        IRolLogic rolLogic = new RolLogic();
        Rol rol = null;

        try {
            rol = rolLogic.getRol(rolId);
        } catch (Exception e) {
            throw e;
        }

        return rol;
    }

    public static List<Rol> findByCriteriaInRol(Object[] variables,
        Object[] variablesBetween, Object[] variablesBetweenDates)
        throws Exception {
        IRolLogic rolLogic = new RolLogic();

        return rolLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<Rol> findPageRol(String sortColumnName,
        boolean sortAscending, int startRow, int maxResults)
        throws Exception {
        IRolLogic rolLogic = new RolLogic();

        return rolLogic.findPageRol(sortColumnName, sortAscending, startRow,
            maxResults);
    }

    public static Long findTotalNumberRol() throws Exception {
        IRolLogic rolLogic = new RolLogic();

        return rolLogic.findTotalNumberRol();
    }

    public static List<Usuario> getUsuario() throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();

        return usuarioLogic.getUsuario();
    }

    public static void saveUsuario(String usuApellido, Long usuEdad,
        String usuEmail, Long usuId, String usuNombre, Long rolId_Rol)
        throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();
        usuarioLogic.saveUsuario(usuApellido, usuEdad, usuEmail, usuId,
            usuNombre, rolId_Rol);
    }

    public static void deleteUsuario(Long usuId) throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();
        usuarioLogic.deleteUsuario(usuId);
    }

    public static void updateUsuario(String usuApellido, Long usuEdad,
        String usuEmail, Long usuId, String usuNombre, Long rolId_Rol)
        throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();
        usuarioLogic.updateUsuario(usuApellido, usuEdad, usuEmail, usuId,
            usuNombre, rolId_Rol);
    }

    public static Usuario getUsuario(Long usuId) throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();
        Usuario usuario = null;

        try {
            usuario = usuarioLogic.getUsuario(usuId);
        } catch (Exception e) {
            throw e;
        }

        return usuario;
    }

    public static List<Usuario> findByCriteriaInUsuario(Object[] variables,
        Object[] variablesBetween, Object[] variablesBetweenDates)
        throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();

        return usuarioLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<Usuario> findPageUsuario(String sortColumnName,
        boolean sortAscending, int startRow, int maxResults)
        throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();

        return usuarioLogic.findPageUsuario(sortColumnName, sortAscending,
            startRow, maxResults);
    }

    public static Long findTotalNumberUsuario() throws Exception {
        IUsuarioLogic usuarioLogic = new UsuarioLogic();

        return usuarioLogic.findTotalNumberUsuario();
    }

    public static List<Vacuna> getVacuna() throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();

        return vacunaLogic.getVacuna();
    }

    public static void saveVacuna(Long vacId, String vacNombre)
        throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();
        vacunaLogic.saveVacuna(vacId, vacNombre);
    }

    public static void deleteVacuna(Long vacId) throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();
        vacunaLogic.deleteVacuna(vacId);
    }

    public static void updateVacuna(Long vacId, String vacNombre)
        throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();
        vacunaLogic.updateVacuna(vacId, vacNombre);
    }

    public static Vacuna getVacuna(Long vacId) throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();
        Vacuna vacuna = null;

        try {
            vacuna = vacunaLogic.getVacuna(vacId);
        } catch (Exception e) {
            throw e;
        }

        return vacuna;
    }

    public static List<Vacuna> findByCriteriaInVacuna(Object[] variables,
        Object[] variablesBetween, Object[] variablesBetweenDates)
        throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();

        return vacunaLogic.findByCriteria(variables, variablesBetween,
            variablesBetweenDates);
    }

    public static List<Vacuna> findPageVacuna(String sortColumnName,
        boolean sortAscending, int startRow, int maxResults)
        throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();

        return vacunaLogic.findPageVacuna(sortColumnName, sortAscending,
            startRow, maxResults);
    }

    public static Long findTotalNumberVacuna() throws Exception {
        IVacunaLogic vacunaLogic = new VacunaLogic();

        return vacunaLogic.findTotalNumberVacuna();
    }
    
 // Metodo que trae un usuario con el Login y password.....
    public static List<Usuario> consultarUsuario(String usu)
			throws Exception {
    	IUsuarioLogic usuLogic = new UsuarioLogic();
    	return usuLogic.consultarUsuario(usu);
    }
	
}
